import Pinyin from './src/pyConvert'

const Convert = function () {}

Convert.fullConvert = (word, flag = false) => {
  if (word === null || word === '') {
    return null
  }
  return Pinyin.unicode(word, 'full', flag)
}

Convert.SimpConvert = (word, flag = false) => {
  if (word === null || word === '') {
    return null
  }
  return Pinyin.unicode(word, 'simp', flag)
}

export default Convert
